package org.example.product.entity;

import java.io.Serializable;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.example.core.valid.group.AddGroup;

/**
 * @author 小杰_cc
 * @version 1.0
 */
@Data
public class AttributeCategoryEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	private Long id;
	/**
	 * 分类id
	 */
	@NotNull(message = "分类id不能为空",groups = {AddGroup.class})
	private Long categoryId;
	/**
	 * 属性id
	 */
	@NotNull(message = "属性id不能为空",groups = {AddGroup.class})
	private Long attributeId;

}
